package com.itheima.myextends.继承特点_03;

public class Ye {
    public void somke(){
        System.out.println("抽大前门");

    }
    public void drink(){
        System.out.println("喝凉白开");
    }
}

class Zi extends Ye {

    public void smoke(){
        System.out.println("抽华子");
    }
    @Override
    public void drink(){
        System.out.println("喝冰阔落");
    }
}
class Demo {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.smoke();

    }
}
